<template>
  <div class="child">
    <h1>我是Child组件</h1>
    <Grandson/>
  </div>
</template>

<script>
  import Grandson from './Grandson'

  export default {
    name:'Child',
    components:{Grandson},
    mounted() {
      console.log('Child-mounted')
    },
  }
</script>

<style>
  .child{
    background-color: orange;
    padding: 20px;
    box-shadow: 0 0 10px black;
    border-radius: 10px;
  }
</style>